package com.bookstore.MapperDao;

import com.bookstore.bean.TradeItem;

import java.util.*;

/**
 * Created by Admin on 9/16 0016.
 */
public interface TradeItemMap {
    /**
     * 批量保存TradeItem对象
     *
     * @param items
     */
    void batchSave(Collection<TradeItem> items) ;

    /**
     * tradeId 获取和其关联的TradeItem 的集合
     *
     * @param tradeId
     * @return
     */
    Set<TradeItem> getTradeItemsWithTradeId(Integer tradeId) ;
}
